package sqlc

import "time"

type findOption struct {
	expire      time.Duration
	emptyExpire time.Duration
	useCache    bool
}

type FindOptions func(opt *findOption)

func WithUseCache(v bool) FindOptions {
	return func(opt *findOption) {
		opt.useCache = v
	}
}

func WithExpire(expire time.Duration) FindOptions {
	return func(opt *findOption) {
		opt.expire = expire
	}
}

func WithEmptyExpire(emptyExpire time.Duration) FindOptions {
	return func(opt *findOption) {
		opt.emptyExpire = emptyExpire
	}
}
